import service from "@/utils/request";
import { sheepdeliveryQuerys } from "./model";
const DEPT_BASE_URL = "/api/";

class sheepDeliverys {
   //种母分娩列表显示
static getList(data?: sheepdeliveryQuerys) {
    return service<any, sheepdeliveryQuerys>({
      url: `${DEPT_BASE_URL}/Parturitions/GetParturition`,
      method: "post",
      data
    });
  }
   //种母分娩添加
  static async addpregnancy(data: any[]) {
  
    return service({
      url: `/api/Parturitions/AddParturition`,
      method: "post",
      data,
    });
  }
  //种母分娩删除
  static async deleteparturition(data: any) {
  
    return service({
      url: `/api/Parturitions/DeleParturition`,
      method: "post",
      data,
    });
  }
}
export default sheepDeliverys;